<?php
class Form_FirstLogin extends Zend_Form
{
    public function init ()
    {
        $name = $this->createElement('text', 'name');
        $name->setRequired(true)
            ->addValidator('NotEmpty')
            ->addFilter('StringTrim')
            ->addFilter('StripTags');
        $this->addElement($name);
        
        
        $surname = $this->createElement('text', 'surname');
        $surname->addFilter('StringTrim')
        		->addFilter('StripTags');
        $this->addElement($surname);
        
        
        $country = $this->createElement('select', 'country');
        $country->setRequired(true)
        		->addValidator('NotEmpty')
        		->addFilter('StringTrim')
            	->addFilter('StripTags')
            	->addMultiOptions(
        				array('Ukraine' => 'Ukraine', 'Russia' => 'Russia'))
            	->setSeparator('');
        $this->addElement($country);
        
        
        $city = $this->createElement('text', 'city');
        $city->addFilter('StringTrim')->addFilter('StripTags');
        $this->addElement($city);
        
        
        $gender = $this->createElement('radio', 'gender');
        $gender->setRequired(true)
            	->addFilter('StringTrim')
            	->addFilter('StripTags')
            	->addMultiOptions(
        array('0' => 'Male', '1' => 'Female'));
        
        $this->addElement($gender);
        
        
        $submit = $this->createElement('submit', 'submit');
        $this->addElement($submit);
    }
}
?>

